:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 一些全局样式 */
.card-title {
  width: 100%;
  height: 44px;
  padding: 4px 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 87, 241, 0) 0%, rgba(0, 127, 231, 0.92) 46%, rgba(0, 87, 241, 0) 94%);
  box-sizing: border-box;
  border: 0.83px solid;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 0.9) 51%, rgba(255, 255, 255, 0) 97%) 0.83;
  color: #FFFFFF;

  h1 {
    font-family: Source Han Sans CN;
    font-size: 18px;
    font-weight: bold;
    line-height: 36px;
    letter-spacing: normal;
  }

  &-num {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    &-num {
      font-size: 30px;
      font-weight: bold;
      letter-spacing: normal;
    }

    &-unit {
      margin-left: 4px;
      font-size: 14px;
      font-weight: normal;
      letter-spacing: normal;
      color: rgba(255, 255, 255, 0.8);
    }
  }

}

.card-tab {
  display: flex;
  width: 100%;
  height: 36px;
  margin: 10px 0;

  &-item {
    display: inline-block;
    width: 50%;
    height: 36px;
    background: linear-gradient(90deg, rgba(7, 47, 95, 0.3) 5%, rgba(7, 47, 95, 0.3) 99%);
    box-sizing: border-box;
    /* 蓝色-渐变 */
    border: 1px solid;
    border-image: linear-gradient(0deg, #A0D2E9 6%, #A1D3EB 100%) 1;
    font-family: Source Han Sans CN;
    font-size: 16px;
    font-weight: normal;
    line-height: 36px;
    text-align: center;
    letter-spacing: normal;
    /* 文字颜色/主标题&一级标题 */
    color: #FFFFFF;
    cursor: pointer;

    &-active {
      background: rgba(28, 115, 226, 0.6);
    }
  }
}

.hidden-scrollbar {
  &::-webkit-scrollbar {
    display: none;
  }
}

// 文字一行超出隐藏
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url('./font/YouSheBiaoTiHei-2.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans CN";
  src: url("./font/SourceHanSansCN-Regular.otf") format("opentype");
}